//
//  CDshelfViewController.m
//  CDshelf
//
//  Created by wangjun on 11-4-22.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "CDshelfViewController.h"
#import "CDShelfView.h"
@implementation CDshelfViewController

- (void)dealloc
{
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}
#pragma mark - View lifecycle
- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self.view setFrame:CGRectMake(0, 0, 1024, 768)];
    
    CDShelfView *cdshelfView=[[CDShelfView alloc] initWithFrame:CGRectMake(0, 60, 1024, 663)];
    [self.view addSubview:cdshelfView];
    [cdshelfView release];
    
}
- (void)viewDidUnload
{
    [super viewDidUnload];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return interfaceOrientation==UIRectCornerBottomLeft||interfaceOrientation==UIRectCornerBottomRight;
}

@end
